#pragma once

#include "LineCapPlug.h"
#include "..\..\src\DDPublic\PlugReg.h"

#define TestCapture "Test-Cap"

class DDefaultLineCap :public LineCapPlug, public PlugReg
{
public:
	DDefaultLineCap(void);
	~DDefaultLineCap(void);

public: 
	//get this plug description
	virtual int GetPlugDescription( zkCapDevDesc *pDescs,int &nCount );
	virtual int SelectCap( zkCapDevDesc *pDesc );

public:
	//must init
	virtual int Initialize();
	//
	virtual int GetLineBitInfo(zkLineBitInfo *pLineBit);
	//set capture parameter
	virtual int OpCaptureParam(void *pVoid = NULL);
	//
	virtual int StartCapture();
	//stop active
	virtual int StopCapture();
	//
	virtual int GetLinePixelCount(int &nPixelCount);
	//
	virtual int GetLinePixel(void *pData);

private:
	UINT m_nRotation;
    
private:
	zkImgBitInfo m_xImgBitInfo;

private:
	int m_nReadLines;



private:
	BYTE             m_szTemp[1024];
};
